function alert(msg){
    /*var html = "<div style='width:80%;position:absolute;margin-left: 30%;top: 40%;'>\n\
     <div class='alert' style='height:40px;width:95%;line-height: 40px;background-color:black;border-radius:14px;color:#fff;opacity:0.8;border:black;text-align:center;z-index:99999;position:relative;'>"+msg+"</div>\n\
     </div>";*/
    var html = "<div class='loading-container visible active maibei-alert'>"+
                    "<div class='loading'>"+
                        "<span>"+msg+"</span>"+
                    "</div>"+
                "</div>";
    $(".maibei-alert").remove();
    $("body").append(html);
    setTimeout("hidden_alert()",2000);
}
function maibei_alert(msg, show_time){
    /*var html = "<div style='width:80%;position:absolute;margin-left: 30%;top: 40%;'>\n\
     <div class='alert' style='height:40px;width:95%;line-height: 40px;background-color:black;border-radius:14px;color:#fff;opacity:0.8;border:black;text-align:center;z-index:99999;position:relative;'>"+msg+"</div>\n\
     </div>";*/
    var html = "<div class='loading-container visible active maibei-alert'>"+
        "<div class='loading'>"+
        "<span>"+msg+"</span>"+
        "</div>"+
        "</div>";
    $(".maibei-alert").remove();
    $("body").append(html);
    setTimeout("hidden_alert()",show_time);
}
function hidden_alert(){
    $(".maibei-alert").fadeOut("slow").remove();
}